//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Common
//  File name:	IWebEntity.cs
//  Developer:	Solomatov Igor
//  Created:	15.04.2012
// 
//  -------------------- iSharePoint -------------------- //

using Microsoft.SharePoint;

namespace Smart.Common.Entities
{
	public interface IWebEntity : IEntity
	{
		/// <summary>
		/// Return SharePoint list item
		/// </summary>
		SPListItem GetItem();

		/// <summary>
		/// Return SharePoint file
		/// </summary>
		SPFile GetFile();

		/// <summary>
		/// Return SharePoint folder
		/// </summary>
		SPFolder GetFolder();

		/// <summary>
		/// SharePoint content type
		/// </summary>
		SPContentType ContentType { get; }

		/// <summary>
		/// SharePoint content type name
		/// </summary>
		string ContentTypeName { get; }

		/// <summary>
		/// SharePoint content type id
		/// </summary>
		SPContentTypeId ContentTypeId { get; }

		/// <summary>
		/// Return folder path from root folder (if empty - no folder)
		/// </summary>
		string[] GetFolderPath();
	}
}